package XmlHomework;

public class Student<T> {
    private int age;
    private String name;
    private T cla;

    public Student() {
        System.out.println("111");
    }

    public Student(int age) {
        this.age = age;
    }

    public Student(String name) {
        this.name = name;
    }

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public Student(int age, String name, T cla) {
        this.age = age;
        this.name = name;
        this.cla = cla;
    }



    public void show() {
        System.out.println(age + "~" + name);
        if (cla != null) {
            System.out.println(cla.toString());
        }
    }


}




